package com.emo.wowoblog.service;

import com.emo.wowoblog.entity.Users;

public interface UserService {
    /**
     * 用户注册
     * @param user
     */
    void reg(Users user);

    /**
     * 用户登录
     * @param email
     * @param password
     * @return
     */
    Users login(String email, String password);

    /**
     * 判断email是否存在
     * @param email
     * @return
     */
    boolean isExistEmail(String email);

}
